package com.zzyweb.rentalcarsys.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zzyweb.rentalcarsys.entity.relationship.UserAndRole;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface UserRoleMapper extends BaseMapper<UserAndRole> {
    @Delete("delete from user_role where user_id = #{userId}")
    void deleteByUserId(Long userId);
}
